package com.mcf.xiaolinju.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mcf
 * @since 2021-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户表主键
     */
    private Integer userid;

    /**
     * 身份证号
     */
    private String idcardnumber;

    /**
     * 小区的id
     */
    private Integer communityid;

    /**
     * 单元
     */
    private String unitnum;

    /**
     * 楼号
     */
    private Integer buildingnum;

    /**
     * 门牌号
     */
    private Integer housenum;

    /**
     * 电话号
     */
    private String phonenum;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 头像地址
     */
    private String portrait;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getIdcardnumber() {
        return idcardnumber;
    }

    public void setIdcardnumber(String idcardnumber) {
        this.idcardnumber = idcardnumber;
    }

    public Integer getCommunityid() {
        return communityid;
    }

    public void setCommunityid(Integer communityid) {
        this.communityid = communityid;
    }

    public String getUnitnum() {
        return unitnum;
    }

    public void setUnitnum(String unitnum) {
        this.unitnum = unitnum;
    }

    public Integer getBuildingnum() {
        return buildingnum;
    }

    public void setBuildingnum(Integer buildingnum) {
        this.buildingnum = buildingnum;
    }

    public Integer getHousenum() {
        return housenum;
    }

    public void setHousenum(Integer housenum) {
        this.housenum = housenum;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    @Override
    public String toString() {
        return "UserDetails{" +
                "id=" + id +
                ", userid=" + userid +
                ", idcardnumber='" + idcardnumber + '\'' +
                ", communityid=" + communityid +
                ", unitnum='" + unitnum + '\'' +
                ", buildingnum=" + buildingnum +
                ", housenum=" + housenum +
                ", phonenum='" + phonenum + '\'' +
                ", sex=" + sex +
                ", portrait='" + portrait + '\'' +
                '}';
    }
}
